<template>
       <div class="home_resource_img_box">
                 <div class="home_resource_img">
                     <img :src="props.imgData.cover" alt="">
                     <span class="home_resource_content_activity">{{props.imgData.kind}}</span>
                 </div>
       </div>
</template>

<script setup>
const props = defineProps({
    imgData:Object,
})
</script>

<style scoped>
.home_resource_img_box{
    padding: 10px;
}

.home_resource_img{
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 180px;
    cursor: pointer;
}
.home_resource_img img{
    width: calc(100% - 10px);
    aspect-ratio: 16/9;
    transition: all .3s;
}
.home_resource_img img:hover{
    transform: scale(1.03);
}
.home_resource_content_activity{
    position: absolute;
    top: 5%;
    left: 5%;
    padding: 1px 6px;
    color: white;
    background: #606162;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
</style>